-- GENERATED SPELL FOR [Wrathstalker] --


function spell0_21249(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21249', 565, 1)
end

function Sorts_21249(pUnit, Event)
local choix_sorts_21249 = math.random(0, 0)
if choix_sorts_21249 == 0 then
pUnit:RegisterEvent('spell0_21249', 1, 1)
end
end

function mob21249_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21249', math.random(1500, 3000), 1)
end

function mob21249_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21249_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21249_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21249, 1, 'mob21249_Action')
RegisterUnitEvent(21249, 2, 'mob21249_Leave')
RegisterUnitEvent(21249, 3, 'mob21249_Kill')
RegisterUnitEvent(21249, 4, 'mob21249_Die')
